package com.shan.dao;

import com.shan.pojo.Brand;
import org.apache.ibatis.annotations.Param;

import java.util.List;
import java.util.Map;

public interface BrandMapper {
    List<Brand> selectAll();

    Brand selectDan(int id);

    //单个传值
    List<Brand> selectDuo1(@Param("brand_name") String brandName,
                           @Param("company_name") String companyName,
                           @Param("status") Integer status);

    //包装成对象传值
    List<Brand> selectDuo2(Brand brand);

    List<Brand> selectDuo3(Map map);

    void add(Brand brand);


    int update(Brand brand);


    int deleteOne(Integer id);


    void deleteByIds(@Param("ids") int[] ids);
}
